package com.ttg.model.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ttg.model.pojo.VipBindTag;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author zhangHongYuan
 * @description
 * @date 2024/3/5 15:16
 */
public interface VipBindTagMapper extends BaseMapper<VipBindTag> {

    Map<Long,Integer> getGroupByTagCount();

    int addVipBindTag(@Param("sql") String sql);

    int addMctBindTag(@Param("sql") String sql);

    @MapKey("mctNo")
    Map<String,Map<String,Integer>> numByMctNos(@Param("mctNos") List<String> mctNos);

    List<VipBindTag> selectBytags(@Param("containsTagIds") List<String> containsTagIds,
                                  @Param("excludeTagIds") List<String> excludeTagIds);
}
